package com.bjsxt.livegoods.feedback.client.controller;

import com.bjsxt.livegoods.feedback.client.service.FeedbackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class FeedbackController {

    @Autowired
    private FeedbackService feedbackService;

    @PostMapping
    @CrossOrigin
    public Map<String,Object> feedback(String feedback,String orderId){
        return feedbackService.feedback(feedback,orderId);
    }
}
